package com.atguigu.meinian.mapper;

import com.atguigu.meinian.pojo.TravelGroup;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author zbystart
 * @create 2021-06-21 14:44
 */
public interface TravelGroupMapper {

    Page<TravelGroup> selectByPageAndCondition(@Param("queryString") String queryString);

    void insert(TravelGroup travelGroup);

    void insertTravelItems(HashMap<String, Object> map);

    void deleteTravelItemsByTravelGroupId(@Param("id") Integer id);

    void updateById(TravelGroup travelGroup);

    TravelGroup selectById(@Param("id") Integer id);

    List<Integer> selectTravelItemIds(@Param("id") Integer id);

    void deleteTravelGroupById(Integer id);

    int getTravelItemCount(Integer id);

    List<TravelGroup> selectTravelGroupsByIds(@Param("travelGroupIds") List<Integer> travelGroupIds);
}
